.TH std::match_results::length 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::match_results::length \- std::match_results::length

.SH Synopsis
   difference_type length( size_type n = 0 ) const;  \fI(since C++11)\fP

   Returns the length of the specified sub-match.

   If n == 0, the length of the entire matched expression is returned.

   If n > 0 && n < size(), the length of n^th sub-match is returned.

   if n >= size(), a length of the unmatched match is returned.

   The call is equivalent to (*this)[n].length().

.SH Parameters

   n - integral number specifying which match to examine

.SH Return value

   The length of the specified match or sub-match.

.SH See also

   operator[] returns specified sub-match
              \fI(public member function)\fP
   length     returns the length of the match (if any)
              \fI(public member function of std::sub_match<BidirIt>)\fP
